<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>
<#if user??>
    <h2>欢迎你：${user.userName}.</h2>
    <a href="/logout">注销</a>
<#else>
    <a href="/login">登陆</a>
</#if>
</body>
</html>